package org.jinxing.service.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.jinxing.dao.RolesInfoDAO;
import org.jinxing.model.ActionsInfo;
import org.jinxing.model.RolesInfo;
import org.jinxing.service.RolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("rolesService")
public class RolesServiceImpl implements RolesService{
	@Autowired
	RolesInfoDAO rolesInfoDAO;
	
	@Override
	public List<ActionsInfo> getAllActionsInfoByTree(Integer pid) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean IsLgerOk(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<RolesInfo> getAllRolesInfo() {
		return rolesInfoDAO.selectByExample(null);
	}

	@Override
	public List<ActionsInfo> getActionsByRole(Integer roleId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean relationActionsToRole(Integer roleId,
			List<Integer> actionsIdList) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean saveOrUpdate(RolesInfo roleInfo) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean saveOrUpdate(ActionsInfo actionInfo) {
		// TODO Auto-generated method stub
		return false;
	}

}
